# demo03_multi_extend.py  python多继承
class A:
    def func1(self):
        print("A func")
    def func4(self):
        print("A func4")
class B:
    def func2(self):
        print("B func")
    def func4(self):
        print("B func4")
class C(B, A):
    def func3(self):
        print("C func")
    # def func4(self):
    #     print("C func4")
if __name__ == '__main__':
    c1 = C()
    c1.func4()  
    # 先找子类, 子类没有找父类(多继承，按照就近原则,哪个父类里子类近，就调用谁的)
    # c1.func1()  # A func
    # c1.func2()  # B func
    # c1.func3()  # C func
